package com.wwx.worldonwheels.common.result;


/**
 * 错误信息
 * @author Weixian
 */
public enum ResultCodeEnum implements IErrorCode {
    //TODO 成功代码与信息的补充
    SUCCESS(200, "success"),

    //TODO 失败代码与信息的补充
    FAILED(500, "failed"),

    ;
    private long code;
    private String message;

    ResultCodeEnum(long code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
